package com.mediaideas.videoengine.constants;

/**
 * Created by Jonathan Kranz on 2016/3/9.
 */
public class VideoEngineErrors {
    public final static int ERROR_OK = 0X0000;

    public final static int ERROR_FILE_NOT_EXIST = 0X0001;
    public final static int ERROR_FILE_HAS_EXIST = 0X0002;
    public final static int ERROR_FILE_EXTENSION_NAME_NOT_VALID = 0X0003;

    public static String errorDesc(int error) {
        String desc;
        switch (error) {
            case ERROR_OK:
                desc = "ERROR_OK_" + ERROR_OK;
                break;
            case ERROR_FILE_NOT_EXIST:
                desc = "ERROR_FILE_NOT_EXIST_" + ERROR_FILE_NOT_EXIST;
                break;
            case ERROR_FILE_HAS_EXIST:
                desc = "ERROR_FILE_HAS_EXIST_" + ERROR_FILE_HAS_EXIST;
                break;
            case ERROR_FILE_EXTENSION_NAME_NOT_VALID:
                desc = "ERROR_FILE_EXTENSION_NAME_NOT_VALID_" + ERROR_FILE_EXTENSION_NAME_NOT_VALID;
                break;
            default:
                desc = "ERROR_" + error;
        }
        return desc;
    }
}
